package com.unidt.www.module.expert;

import com.alibaba.fastjson.JSON;
import com.unidt.www.framework.common.util.file.FileReadUtils;
import com.unidt.www.framework.common.util.object.BeanMapUtils;
import com.unidt.www.module.expert.vo.ExpertInfoVo;

import java.util.Map;

/**
 * @Author sk
 * @Description:
 * @Date 2022/11/29 17:12
 **/
public class MainTest {

    public static void main(String[] args) {


        String path = "D://123.json";

        String json = FileReadUtils.read(path, "UTF-8");

        System.out.println(json);

        Map<String, Object> objectMap = JSON.parseObject(json);

        Map<String,Object> s =  BeanMapUtils.transForObject(objectMap, ExpertInfoVo.class);


        String jsonStr = JSON.toJSONString(s);

        ExpertInfoVo expertInfoVo =  JSON.parseObject(jsonStr,ExpertInfoVo.class);




    }
}
